<template>
  <div class="home">
    <div class="nav" v-html="message.content"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      id: 87,
      message: "",
    };
  },
  mounted() {
    this.getlist();
    this.getdesc();
  },
  methods: {
    getlist() {
      this.$axios
        .get("http://www.liulongbin.top:3005/api/getgoods?pageindex=2")
        .then((res) => {
          console.log(res);
        });
    },

    getdesc() {
      this.$axios
        .get("http://www.liulongbin.top:3005/api/goods/getdesc/" + this.id)
        .then((res) => {
          console.log(res);
          this.message = res.data.message[0];
        });
    },
  },
};
</script>
